<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/27
  Time: 16:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link href="${js}/validate/validation.css" rel="stylesheet" type="text/css"/>
<script src="${js}/validate/jquery.validate.min.js"></script>
<script src="${js}/validate/messages_zh.min.js"></script>
<script src="${js}/validate/validate.extend.js"></script>

<script type="text/javascript">
    $(function () {
        $("#form").validate({
            rules: {
                name: {
                    required: true,
                    maxlength: 20
                }
            }
        });
    });
</script>